package com.lx.onbording.vshe.testassignment.core.domain;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class Money implements Serializable {
	private static final long serialVersionUID = 7722525827286332048L;

	@Column
	private String currency;
	@Column
	private BigDecimal amount;

	public Money() {
	}

	public Money(String curreny, BigDecimal amount) {
		this.currency = curreny;
		this.amount = amount;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	@Override
	public String toString() {
		return "Money [currency=" + currency + ", amount=" + amount + "]";
	}

}
